package com.example.dw.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 考试实体类
 * @author system
 * @since 2024-01-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("exams")
public class Exam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 考试ID
     */
    @TableId(value = "exam_id", type = IdType.AUTO)
    private Integer examId;

    /**
     * 考试名称
     */
    @TableField("exam_name")
    private String examName;

    /**
     * 考试描述
     */
    @TableField("description")
    private String description;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    @TableField("updated_at")
    private LocalDateTime updatedAt;

    /**
     * 创建者ID
     */
    @TableField("created_by")
    private Integer createdBy;

    /**
     * 课程ID
     */
    @TableField("courseid")
    private Integer courseid;

    /**
     * 题目ID列表（逗号分隔）
     */
    @TableField("question_ids")
    private String questionIds;

    /**
     * 满分
     */
    @TableField("fullsocre")
    private String fullscore;

    /**
     * 及格分
     */
    @TableField("success")
    private String success;

    /**
     * 课程类型ID
     */
    @TableField(exist = false)
    private Integer courseTypeId;
} 